class Role < ActiveRecord::Base
    has_and_belongs_to_many :rights,:order=>'module,mgroup,id'
    has_many :accounts
    belongs_to :department
end
